/**
 * Coryright 2015-2020 www.eyaomall.cn
 * All rights reserved.
 * @author tumingjun
 * @date 2016年9月20日
 *
 */

package com.eyaomall.wxmanage.service;

import com.eyaomall.wxmanage.model.po.Invoice;
import com.eyaomall.wxmanage.model.vo.InvoiceVO;
import com.lycheeframework.core.cmp.kit.PageHTTPObject;
import com.lycheeframework.core.cmp.kit.Pages;

/**
 * 发票管理
 * @author tumingjun
 *
 */
public interface InvoiceService {

	/**
	 * 查询
	 * @param invoice
	 * @return
	 */
	public Pages<?> page_data(InvoiceVO invoiceVO,PageHTTPObject httpObject);
	
	/**
	 * 拒绝发票申请
	 * @param invoiceId
	 * @return
	 */
	public boolean refuse(Integer invoiceId,String memo);
	
	/**
	 * 同意发票申请
	 * @param invoiceId
	 * @return
	 */
	public boolean agree(Integer invoiceId);
	
	/**
	 * 付款成功后修改发票状态
	 * @param invoiceId
	 * @return
	 */
	public boolean hasPay(Integer paymentId);
	
	/**
	 * 根据订单号查询发票信息
	 * @param paymentId
	 * @return
	 */
	public Invoice queryByPaymentId(Integer paymentId);
	
	/**
	 * 修改发票状态
	 * @param invoiceId
	 * @return
	 */
	public boolean changState(Integer invoiceId);
}
